﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;
using System.Data;
using System.Data.SqlClient;
namespace BLL
{
   public class ChaBLL
    {
        //登录查询是否有该账号
       public static DataTable Cha(Models.Consumer1 cus)
       {
           return DAL.ChaDAL.Cha(cus);
       }
        //登录该用户的昵称
       public static string ChaName(Models.Consumer1 cus)
       {
          return DAL.ChaDAL.Cha(cus).Rows[0]["Name"].ToString();
       }

       //根据姓名查询改用户的信息资料
       public static DataTable ChaZiLiao(string cus)
       {

           return DAL.ChaDAL.ChaZiLiao(cus);
       }
       //查询所有商品
       public static DataTable sp()
       {
           return DAL.ChaDAL.sp();
       }
    }
}
